package com.dragon.modules.yuegou.model.pay;

import com.dragon.modules.yuegou.entity.pay.RefundRecordEntity;
import com.dragon.modules.yuegou.enums.pay.RefundRecordStatus;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 退款记录表模型类
 * 
 * @author pbuilder generated
 * @date 2019-03-18 16:40:41
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class RefundRecord extends RefundRecordEntity {

	/**
	 * 构造一个空退款记录表模型对象
	 */
	public RefundRecord(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个退款记录表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public RefundRecord(RefundRecordEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个退款记录表模型对象
	 * 
	 * @param other 其它对象
	 */
	public RefundRecord(RefundRecord other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public RefundRecord id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getPayId() {
    	return payId;
    }

    /**
	 * 设置支付id
	 * 
	 * @param payId 支付id
	 * @return 当前对象
	 */
    public RefundRecord payId(String payId) {
    	this.payId = payId;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置商户订单号
	 * 
	 * @param orderNo 商户订单号
	 * @return 当前对象
	 */
    public RefundRecord orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public String getRefundNo() {
    	return refundNo;
    }

    /**
	 * 设置退款单号
	 * 
	 * @param refundNo 退款单号
	 * @return 当前对象
	 */
    public RefundRecord refundNo(String refundNo) {
    	this.refundNo = refundNo;
    	return this;
    }

	@Override
	public BigDecimal getRefundFee() {
    	return refundFee;
    }

    /**
	 * 设置退款金额
	 * 
	 * @param refundFee 退款金额
	 * @return 当前对象
	 */
    public RefundRecord refundFee(BigDecimal refundFee) {
    	this.refundFee = refundFee;
    	return this;
    }

	@Override
	public Integer getType() {
    	return type;
    }

    /**
	 * 设置【枚举】退款类型：0-微信-WEICHANT、 1-支付宝-ALIPAY、 2-悦卡-YUECARD、 3-悦币-YUECOIN、4-积分-POINTS
	 * 
	 * @param type 【枚举】退款类型：0-微信-WEICHANT、 1-支付宝-ALIPAY、 2-悦卡-YUECARD、 3-悦币-YUECOIN、4-积分-POINTS
	 * @return 当前对象
	 */
    public RefundRecord type(Integer type) {
    	this.type = type;
    	return this;
    }

	@Override
	public RefundRecordStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]状态：0-部分退款-PART_REFUND、1-全部退款-ALL_REFUND
	 * 
	 * @param status [枚举]状态：0-部分退款-PART_REFUND、1-全部退款-ALL_REFUND
	 * @return 当前对象
	 */
    public RefundRecord status(RefundRecordStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public RefundRecord createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public RefundRecord modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Integer getResults() {
    	return results;
    }

    /**
	 * 设置结果：0-申请中-APPLY、1-退款成功-SUCCESS、1-退款失败-FAILURE
	 * 
	 * @param results 结果：0-申请中-APPLY、1-退款成功-SUCCESS、1-退款失败-FAILURE
	 * @return 当前对象
	 */
    public RefundRecord results(Integer results) {
    	this.results = results;
    	return this;
    }

	@Override
	public Integer getVersion() {
    	return version;
    }

    /**
	 * 设置
	 * 
	 * @param version 
	 * @return 当前对象
	 */
    public RefundRecord version(Integer version) {
    	this.version = version;
    	return this;
    }
}
